<div class="single_item" style="margin-bottom: 50px;   background-color: black">
    <div class="item_head" style="padding: 10px 10px; text-align: left; padding-left: 30px;">
        <?php if ($data->title): ?>
            <h1><?= $data->title ?></h1>
        <?php endif; ?>
        <div class="admin-item-panel">
            <?php if ($data->is_approved == '0' || $data->is_approved == '1'): ?>
                <a href="<?php echo Yii::app()->createUrl('/content/approve', array('cid' => $data->content_id)) ?>"><img alt="Approve" src="<?php echo Yii::app()->getBaseUrl() ?>/images/icons/img_landscape_accept.png"/></a>
            <?php endif; ?>
        </div>
        <div style="clear: both;"></div>
    </div>
    <div class="item_main" style="text-align: center;">
        <?php
        if ($data->is_video == 0):
            ?>
            <!-- Image content -->

            <img class="content-image" src="<?php echo Yii::app()->request->baseUrl; ?>/images/content/<?= $data->file ?>" width="600"/>
            <?php
        else:
            ?>
            <!-- Video content -->
            <iframe width="600" height="400" src="<?php echo $data->url ?>" frameborder="0" allowfullscreen></iframe>


        <?php
        endif;
        ?>
    </div>
    <div class="item_foot" style="padding: 10px 100px; text-align: right;">
        <?php if ($data->source): ?>
            Źródło: <?= $data->source ?>
        <?php endif; ?>
    </div>
</div>
